package com.wzh.project.thread.basethread;

import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;

public class MyThread1 implements Runnable{
	private static final Logger logger = LogManager.getLogger(MyThread1.class);
	private int count=0;

	@Override
	public void run() {
		System.out.println("MyThread1");
		logger.debug(Thread.currentThread().getName());
//		while(true) {
//			System.out.println(count++);
//			try {
//				Thread.sleep(1000);
//			} catch (InterruptedException e) {
//				// TODO Auto-generated catch block
//				e.printStackTrace();
//			}
//		}
		
	}

}
